import 'package:flutter/material.dart';

import 'backdrop.dart';
import 'dragable.dart';
import 'progress.dart';
import 'silver.dart';
import 'constrained_box.dart';
import 'decorated_box.dart';
import 'fitted.dart';
import 'geolocator.dart';
import 'simple_dialog.dart';
import 'search.dart';

class IndexPage extends StatefulWidget {
  @override
  _IndexPageState createState() => _IndexPageState();
}

class _IndexPageState extends State<IndexPage> {
  String _title = "Test";

  @override
  Widget build(BuildContext context) {
    //arguments = ModalRoute.of(context).settings.arguments;

    return Scaffold(
      appBar: AppBar(
        title: Text(_title),
      ),
      body: ListView(children: [
        Center(
            child: FlatButton(
                onPressed: () {
                  Navigator.push(context,
                      MaterialPageRoute(builder: (context) => ProgressPage()));
                },
                color: Colors.blue,
                textColor: Colors.white,
                child: Text('Progress page'))),
        Center(
            child: FlatButton(
                onPressed: () {
                  Navigator.push(context,
                      MaterialPageRoute(builder: (context) => DragablePage()));
                },
                color: Colors.blue,
                textColor: Colors.white,
                child: Text('Gesture Drag page'))),
        Center(
            child: FlatButton(
                onPressed: () {
                  Navigator.push(context,
                      MaterialPageRoute(builder: (context) => SilverPage()));
                },
                color: Colors.blue,
                textColor: Colors.white,
                child: Text('Silver page'))),
        Center(
          child: FlatButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => BackdropPage()));
            },
            color: Colors.blue,
            textColor: Colors.white,
            child: Text('BackdopFilter page'),
          ),
        ),
        Center(
          child: FlatButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => DecoratedBoxPage()));
            },
            color: Colors.blue,
            textColor: Colors.white,
            child: Text('DecoratedBox page'),
          ),
        ),
        Center(
          child: FlatButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => ConstrainedBoxPage()));
            },
            color: Colors.blue,
            textColor: Colors.white,
            child: Text('Constrained/Overfflow Box page'),
          ),
        ),
        Center(
          child: FlatButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => FittedBoxPage()));
            },
            color: Colors.blue,
            textColor: Colors.white,
            child: Text('FittedBox page'),
          ),
        ),
        Center(
          child: FlatButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => SimpleDialogPage()));
            },
            color: Colors.blue,
            textColor: Colors.white,
            child: Text('SimpleDialog page'),
          ),
        ),
        Center(
          child: FlatButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => GeolocatorPage()));
            },
            color: Colors.blue,
            textColor: Colors.white,
            child: Text('Geolocator page'),
          ),
        ),
        Center(
          child: FlatButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => SearchPage()));
            },
            color: Colors.blue,
            textColor: Colors.white,
            child: Text('Search page'),
          ),
        ),
      ]),
    );
  }
}
